package deviceauthlogic

import (
	"context"
	"gitee.com/unitedrhino/share/ctxs"

	"gitee.com/unitedrhino/protocol-wumei/service/pwumeisvr/internal/svc"
	"gitee.com/unitedrhino/protocol-wumei/service/pwumeisvr/pb/pwumei"

	"github.com/zeromicro/go-zero/core/logx"
)

type DeviceRegisterLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewDeviceRegisterLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeviceRegisterLogic {
	ctx = ctxs.WithRoot(ctx)
	return &DeviceRegisterLogic{
		ctx:    ctxs.WithRoot(ctx),
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

// 设备动态注册
func (l *DeviceRegisterLogic) DeviceRegister(in *pwumei.DeviceRegisterReq) (*pwumei.DeviceRegisterResp, error) {
	// todo: add your logic here and delete this line

	return &pwumei.DeviceRegisterResp{}, nil
}
